package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"store-master/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/add", &controllers.StoreController{}, "post:Add")
	beego.Router("/upload", &controllers.StoreController{}, "post:Upload")
	beego.Router("/update", &controllers.StoreController{}, "post:Update")
	beego.Router("/list", &controllers.StoreController{}, "get:List")
	beego.Router("/login", &controllers.UserController{}, "post:Login")
}
